package com.lanou.entity;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @Controller web层
 * @Service     service层
 * @Repository  dao层
 */
@Component
//@Scope("prototype")把车定义为多例
public class Car {
    @Autowired//自动注入,Framework类自动注入
    private Framework framework;

    public Car(Framework framework) {
        this.framework = framework;
    }

    public Framework getFramework() {
        return framework;
    }

    public void setFramework(Framework framework) {
        this.framework = framework;
    }
}
